package com.yc.simple.service;


import com.yc.simple.bean.User;
import com.yc.simple.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> listUsers(){
        return userDao.selectAll();
    }
}
